/**
 *Filename: user_center.scss
 *Author: xhh
 *Description: 混钻商品列表，还没有编译的文件，用的是sass语法写
 *Date: 2018.04.02
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";

/* 个人中心主体 start */
.site-user-center-container {
    display: flex;
    max-width: 1200px;
    margin-top: 5.8rem;
    .user-center-left {
        width: 14%;
        margin-right: 2%;
    }
    // 左边导航栏
    .user-center-leftsidebar {
        width: 60%;
        padding: 1% 20%;
        border: 1px solid #cdcdcd;
        h2 {
            font-size: 1.2rem;
            line-height: 2;
            color: #666;
        }
        .icon-user {
            margin-left: -23px;
            margin-right: 8px;
            display: inline-block;
            width: 15px;
            height: 15px;
            background: url(../img/user/center/icon_person.jpg) no-repeat center;
            background-size: cover;
        }
        .dt-title {
            position: relative;
            color: #4c4c4c;
            line-height: 2.2;
            font-weight: 600;
            cursor: pointer;
            &::before {
                content: '';
                position: absolute;
                left: -16px;
                top: 16px;
                height: 8px;
                width: 8px;
                background-color: #d9aa62;
            }
        }
        // 自定义列表内容
        .user-center-dd {
            a {
                line-height: 1.7;
                font-size: .875rem;
                color: #666;
                &:hover {
                    color: #333;
                }
                &.current {
                    color: #333;
                }
            }
        }
    }
    
    // 广告图
    .left-banner {
        div {
            text-align: center;
            margin-top: 1.2rem;
        }
    }
    // 右边主要信息
    .user-center-rightcontent {
        width: 83%;
        // 头部信息
        .rightcontent-top {
            display: flex;
            // 用户信息
            .user-info {
                display: flex;
                width: 57%;
                margin-right: 4%;
                background:url(../img/user/center/header_bg.png) no-repeat center;
                background-size: cover;
            }
            .user-img {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                width: 54%;
                img {
                    width: 6rem;
                    height: 6rem;
                    margin-bottom: 1.2rem;
                    border-radius: 50%;
                }
                span {
                    position: relative;
                    line-height: 2.4;
                    font-size: .875rem;
                    color: #666;
                    &::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: -20%;
                        width: 140%;
                        height: 1px;
                        background-color: #000;
                    }
                }
            }
            .user-contact {
                width: 50%;
                padding: 4% 0;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                color: #666;
            }
            // 右边广告
            .right-banner {
                width: 38%;
            }
        }
        // 用户订单
        .user-orders {
            border-left: 1px solid #dadada;
            border-right: 1px solid #dadada;
            border-top: 3px solid #dadada;
            border-bottom: 3px solid #dadada;
            margin-top: 2rem;
            // 头部参数说明
            header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 1% 2%;
                h3 {
                    border-bottom: 2px solid #d9aa62;
                    line-height: 1.4;
                }
                i {
                    font-family: 'Simsun';
                    font-weight: 600;
                    color: #666;
                }
            }
            .user-orders-header {
                display: flex;
                justify-content: space-around;
                padding-top: .5rem;
                font-weight: 600;
                font-size: .875rem;
                text-transform: capitalize;
                text-align: center;
                color: #333;
                .prod {
                    width: 26%;
                    text-align: left;
                    padding-left: 2%;
                }
                .param {
                    width: 24%;
                }
                .num {
                    width: 19%;
                }
                .total {
                    width: 17%;
                }
                .tran {
                    width: 12%;
                }
            }
            //订单列表
            .user-orders-content {
                display: flex;
                flex-direction: column;
            }
            // 包裹订单列表的盒子
            .user-orders-list {
                width: 100%;
                max-height: 720px;
                overflow-y: auto;
                // 每个订单
                .user-orders-item {
                    position: relative;
                    a {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        color: #333;

                    }
                    border-left: 4px solid #fff;
                    line-height: 5.4;
                    font-size: .875rem;
                    text-align: center;
                    .item-prod {
                        display: flex;
                        align-items: center;
                        width: 26%;
                        padding-left: 2%;
                        line-height: 1.2;
                        font-size: .875rem;
                        text-align: left;
                        // 钻石图片
                        img {
                            padding: .2rem;
                            border: 1px solid #dadada;
                        }
                        // 钻石名称
                        h3 {
                            max-width: 55%;
                            margin-left: .4rem;
                        }
                    }
                    // 参数
                    .item-param {
                        width: 24%;
                        display: flex;
                        justify-content: space-around;
                        text-transform: capitalize;
                    }
                    // 数量
                    .item-num {
                        width: 19%;
                        display: flex;
                        justify-content: center;
                    }
                    // 总价
                    .item-total {
                        width: 17%;
                        color: #999;
                    }
                    // 运输进度
                    .item-tran {
                        width: 12%;
                    }
                    // li标签的下划线
                    &::before {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 3%;
                        width: 92%;
                        height: 1px;
                        background-color: #dadada;
                    }
                    &:last-child{
                        &::before {
                            display: none;
                        }
                    }
                    &:hover {
                        border-left: 4px solid #ccc;
                        background-color: #eee;
                    }
                }
            }
        }
        // 用户收藏
        .user-favorites {
            padding: 2% 2% 4%;
            border-left: 1px solid #dadada;
            border-right: 1px solid #dadada;
            border-top: 3px solid #dadada;
            border-bottom: 3px solid #dadada;
            margin-top: 1rem;
            .header-title {
                display: flex;
                color: #999;
                h3 {
                    padding-right: 3rem;
                    cursor: pointer;
                    &:hover {
                        color: #333;
                    }
                    &.active {
                        color: #333;
                    }
                }
            }
            .goods-list-wrapper {
                > div {
                    display: none;
                }
                .selected {
                    display: block;
                }
            }
            // 钻石列表
            .goods-list {
                display: flex;
                flex-flow: wrap;
                .goods-item {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    width: 20%;
                    margin-top: 1rem;
                    img {
                        max-width: 100%;
                        &:hover{
                            transform: scale(1.1,1.1);
                            transition: all .2s linear;
                        }
                    }
                    h4 {
                        margin-top: 2rem;
                        font-size: 1rem;
                    }
                    a {
                        color: #999;
                        padding: .5rem 0;
                        font-size: .875rem;
                        &:hover {
                            color: #333;
                        }
                    }
                }
            }
        }
    }
}
/* 个人中心主体 end */